package com.jweb.login.actions;

import java.util.List;

import com.jweb.dao.login.AccountDAO;
import com.jweb.login.actions.JWTActions;
import com.jwt.dao.bean.Account;
/**
 * 
 * @author Paul Kevin
 *
 */
public class JWTActionsImpl implements JWTActions{
	
	private AccountDAO accountDao;
	
	/**
	 * @param accountDao the accountDao to set
	 */
	public void setAccountDao(AccountDAO accountDao) {
		this.accountDao = accountDao;
	}

	@Override
	public Account getAccount(String username) {
		return this.accountDao.getAccount(username);
	}

	@Override
	public Account getAccount(String username, String password) {
		return this.accountDao.getAccount(username, password);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getUsernameList() {
		return this.accountDao.getUsernameList();
	}

}
